module.exports = {



    outputDir: './dist',


    /*强制内联样式*/
    css: {
        extract: false,

        loaderOptions: {
            less: {
                modifyVars: {
                    'primary-color': '#1890FF',
                    'link-color': '#1DA57A',
                    'border-radius-base': '1px',
                    "font-size-base": "13px",
                    "body-background ": "#fff",
                    'text-color-secondary' : 'fade(#000, 45%)',
                    '@text-color':'fade(#000, 65%)',
                    // Menu
// ---
                    "menu-inline-toplevel-item-height": "40px",
                    "menu-item-height": "40px",
                    "menu-collapsed-width": "80px",

                    "menu-popup-bg": "#393E46",
                    "menu-item-color": "#ffffff",

                    "menu-item-active-bg": "@primary-color",
                    "menu-item-active-border-width": "0px",
                    "menu-highlight-color": "#ffffff",
                    "menu-bg": "#001529",
                    "menu-item-group-title-color": "@text-color-secondary",
                    //Layout
                    'layout-header-height' : '64px',
                    "layout-sider-background-light": "@menu-bg",
                    "layout-body-background ": "#ffffff"

                },
                javascriptEnabled: true
            }
        }
    },

    configureWebpack: {
        // No need for splitting
        optimization: {
            splitChunks: false
        }
    },
    productionSourceMap: false,
    // 修改的配置
    devServer: {
        compress: true,
        proxy: {
            '/': {
                // 目标 API 地址
                target: 'http://localhost:8091',
                // 如果要代理 websockets
                ws: false,
                // 将主机标头的原点更改为目标URL
                changeOrigin: false,
                pathRewrite: {
                    '/': '/'
                }
            }
        }


    }
}